//
//  TDL_Config.h
//  TDL_CYMSManager
//
//  Created by zhangkunjiu on 16/7/22.
//  Copyright © 2016年 TDL. All rights reserved.
//

#ifndef TDL_Config_h
#define TDL_Config_h

#import "TDL_UI.h"
#import "UIView+TDL.h"

/**
 *  1.屏幕尺寸
 */
#define ScreenWidth  CGRectGetWidth([UIScreen mainScreen].bounds)
#define ScreenHeight CGRectGetHeight([UIScreen mainScreen].bounds)

/**
 *  2.返回一个RGBA格式的UIColor对象
 */
#define RGBA(r, g, b, a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]

/**
 *  3.返回一个RGB格式的UIColor对象
 */
#define RGB(r, g, b) RGBA(r, g, b, 1.0f)

/**
 *  4.弱引用
 */
#define STWeakSelf __weak typeof(self) weakSelf = self;



#endif /* TDL_Config_h */
